package com.example.system.domin.question.dto;

import com.example.common.core.domin.BaseEntity;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.NonNull;

@Data
public class QuestionAddDTO{

    @NotEmpty(message = "题目名称不能为空")
    private String title;

    @NotEmpty(message = "难度不能为空")
    private Integer difficulty;

    @NotEmpty(message = "时间限制不能为空")
    private Long timeLimit;

    @NotEmpty(message = "空间限制不能为空")
    private Long spaceLimit;

    @NotEmpty(message = "题目内容不能为空")
    private String content;

    @NotEmpty(message = "题目用例不能为空")
    private String questionCase;

    @NotEmpty(message = "默认代码不能为空")
    private String defaultCode;

    @NotEmpty(message = "main函数不能为空")
    private String mainFuc;
}
